#include <graphics.h>
#include <conio.h>
#define width 600
#define height 400
#define PI 3.14

void main()
{
	int start_x=300,start_y=200;
	IMAGE img1;
	initgraph(width,height);
	setbkcolor(WHITE);
	cleardevice();
	setorigin(300,0);
	setlinecolor(BLACK);
	arc(0,100,50,150,PI/2,PI);
	line(25,100,90,80);
	line(90,80,193,80);
	arc(90,55,140,105,PI/2,PI);
	line(115,55,180,55);
	line(180,55,205,100);
	line(205,100,210,125);
	line(0,125,40,125);
	arc(40,105,80,145,0,PI);
	line(80,125,160,125);
	arc(160,105,200,145,0,PI);
	line(200,125,210,125);
	arc(45,110,75,140,0,2*PI);
	arc(165,110,195,140,0,2*PI);
	getimage(&img1,0,0,start_x,start_y);
	while(1)
	{
		start_x=start_x-1;
		putimage(start_x-300,0,&img1);
		if (start_x<=-300)
		{
			break;
		}
		Sleep(10);
	}
	_getch();
}